<?php
  
 /**
  * @package JooS
  * @subpackage Syntax_PHPackager
  */

  require_once "JooS/Syntax/Complex/Transition.php";

 /**
  * Value ::= Number | String | Boolean | Variable | Config | Array | Function | Operator_Prefix, Value | "(", Expression, ")";
  */
  class JooS_Syntax_PHPackager_Value extends JooS_Syntax_Complex_Transition {
    /**
     * @return JooS_Syntax_Complex_Choose
     */
    protected function createRule() {
      return $this->createSyntax("Complex_Choose", array(
        $this->createSyntax("Common_Number"), 
        $this->createSyntax("Common_String"), 
        $this->createSyntax("Common_Boolean"), 
        $this->createSyntax("PHPackager_Variable_Syntax"), 
        $this->createSyntax("PHPackager_Config_Get"), 
        $this->createSyntax("PHPackager_Array_Syntax"), 
        $this->createSyntax("PHPackager_Function_Call"), 
        $this->createSyntax("Complex_Concatenate", array(
          $this->createSyntax("PHPackager_Operator_Prefix"), 
          $this->createSyntax("PHPackager_Value")
        )), 
        $this->createSyntax("Complex_Concatenate", array(
          $this->createSyntax("Simple_Symbol", "("), 
          $this->createSyntax("Common_Whitespace"), 
          $this->createSyntax("PHPackager_Expression"), 
          $this->createSyntax("Common_Whitespace"), 
          $this->createSyntax("Simple_Symbol", ")"), 
        )), 
      ));
    }
  }
